const http = uni.$u.http

// 保存单条任务
export const tasksSave = data => http.post("/tasks/save", data)

// 保存任务-从快速选择中
export const tasksSaveByChoose = data => http.post("/tasks/saveByChoose", data)

// 从历史数据中
export const tasksSaveByHis = data => http.post("/tasks/saveByHis", data)

// 删除任务
export const tasksRemove = data => http.post("/tasks/remove", data)

// 开始任务
export const tasksStart = data => http.post("/tasks/start", data)

// 保存单条任务
export const tasksEnd = data => http.post("/tasks/end", data)

// 查询任务列表
export const tasksPage = data => http.post("/tasks/page", data)

// 查询任务列表
export const tasksList = data => http.post("/tasks/list", data)

// 查询任务统计数据
export const tasksGetSum = data => http.post("/tasks/getSum", data)
